package com.deyuanyun.pic.settings.domain;

import com.deyuanyun.pic.common.util.NumberUtil;

/**
 * Created with IntelliJ IDEA.
 * User: linwei
 * Date: 15-9-16
 * Time: 上午11:37
 * To change this template use File | Settings | File Templates.
 */
public class Pagination {

    private Integer current;
    private Integer pageCount;
    private Long totalCount;
    private Long pageSize;

    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        if (NumberUtil.isNull(current)){
            current = 1;
        }
        this.current = current;
    }

    public Integer getPageCount() {
        return pageCount;
    }

    public void setPageCount(Integer pageCount) {
        if (NumberUtil.isNull(current)){
            pageCount = 10;
        }
        this.pageCount = pageCount;
    }

    public Long getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Long totalCount) {
        this.totalCount = totalCount;
    }

    public Long getPageSize() {
        return pageSize;
    }

    public void setPageSize(Long pageSize) {
        this.pageSize = pageSize;
    }
}
